<?php
// echo $_SERVER['PHP_SELF'];
// this code gives the path of current file
// that sets our current form's action to this file itself.

$page = $_GET['page'];
echo "now i will include - <strong>$page</strong>.php ";

?>
<a href="signup.php?page=login" >Login</a>
<a href="signup.php?page=signup" >Signup</a>
<a href="signup.php?page=forum" >Forum</a>
<a href="signup.php?page=message" >Message</a>
<a href="signup.php?page=logout" >Logout</a>

<?php




if (isset($_GET['username'])) {
        $username = $_GET['username'];
}

if (isset($_GET['email'])) {
        $email = $_GET['email'];
}

if (isset($_GET['password'])) {
        $password = $_GET['password'];
}

if ($username != "" && $email != "" && $password != "") {
        

mysql_connect("localhost","root","");
mysql_select_db("susudo");
$query="INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$username', '$password', '$email');";
mysql_query($query);
mysql_close();
echo "<p style='color:#00f'>Hi, $username, thanks for the information. </p> ";
}
else {
echo "<p style='color:red'>Please provide all ur infromation along with comment </p>";
}
?>
